package com.yphone.bean;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import java.io.Serializable;

public class AdBaseInfo implements Serializable, Parcelable {
    public static final Creator<AdBaseInfo> CREATOR = new Creator<AdBaseInfo>() {
        public AdBaseInfo createFromParcel(Parcel source) {
            return new AdBaseInfo(source);
        }

        public AdBaseInfo[] newArray(int size) {
            return new AdBaseInfo[size];
        }
    };
    private static final long serialVersionUID = 123456789;
    public String AdDesc;
    public int AdSort;
    public String From;
    public int ID;
    public String Img;
    public String JumpCommand;
    public String JumpParameter;
    public int Position;
    public int ShowNum;
    public int Status;
    public String Title;

    public AdBaseInfo() {
    }

    public String toString() {
        return "AdBaseInfo{Img='" + this.Img + '\'' + ", JumpCommand='" + this.JumpCommand + '\'' + ", JumpParameter='" + this.JumpParameter + '\'' + ", Title='" + this.Title + '\'' + ", Position=" + this.Position + ", Status=" + this.Status + ", ID=" + this.ID + ", From='" + this.From + '\'' + ", ShowNum=" + this.ShowNum + ", AdSort=" + this.AdSort + '}';
    }

    public int describeContents() {
        return 0;
    }

    public AdBaseInfo(AdBaseInfo info) {
        this.Img = info.Img;
        this.JumpCommand = info.JumpCommand;
        this.JumpParameter = info.JumpParameter;
        this.Title = info.Title;
        this.AdDesc = info.AdDesc;
        this.Position = info.Position;
        this.Status = info.Status;
        this.ID = info.ID;
        this.From = info.From;
        this.ShowNum = info.ShowNum;
        this.AdSort = info.AdSort;
    }

    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.Img);
        dest.writeString(this.JumpCommand);
        dest.writeString(this.JumpParameter);
        dest.writeString(this.Title);
        dest.writeString(this.AdDesc);
        dest.writeInt(this.Position);
        dest.writeInt(this.Status);
        dest.writeInt(this.ID);
        dest.writeString(this.From);
        dest.writeInt(this.ShowNum);
        dest.writeInt(this.AdSort);
    }

    protected AdBaseInfo(Parcel in) {
        this.Img = in.readString();
        this.JumpCommand = in.readString();
        this.JumpParameter = in.readString();
        this.Title = in.readString();
        this.AdDesc = in.readString();
        this.Position = in.readInt();
        this.Status = in.readInt();
        this.ID = in.readInt();
        this.From = in.readString();
        this.ShowNum = in.readInt();
        this.AdSort = in.readInt();
    }

    public void clone(AdBaseInfo info) {
        this.Img = info.Img;
        this.JumpCommand = info.JumpCommand;
        this.JumpParameter = info.JumpParameter;
        this.Title = info.Title;
        this.AdDesc = info.AdDesc;
        this.Position = info.Position;
        this.Status = info.Status;
        this.ID = info.ID;
        this.From = info.From;
        this.ShowNum = info.ShowNum;
        this.AdSort = info.AdSort;
    }
}